package com.seguriapp.crimeactivity.gwt.client.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
import com.seguriapp.common.gwt.client.AbstractSeguriAppPlace;

public class CrimeActivityPlace extends AbstractSeguriAppPlace {

  private static final String ID_MENU = "crimeactivity";

  public CrimeActivityPlace(final String token) {
    super(token, ID_MENU);
  }

  @Prefix(ID_MENU)
  public static class Tokenizer implements PlaceTokenizer<CrimeActivityPlace> {

    public CrimeActivityPlace getPlace(final String token) {
      return new CrimeActivityPlace(token);
    }

    public String getToken(final CrimeActivityPlace place) {
      return place.getToken();
    }
  }
}
